package com.huang.auth.constants;

/**
 * 权限认证服务 常量
 */
public class AuthConstants {

    // token 剩余时间  一天
    public final static Integer FLUSH_TOKEN_TIME = 24 * 60 * 60 * 1000;
    // 账号不存在
    public final static Integer NO_ACCOUNT_CODE = 0;
    // 登陆密码错误
    public final static Integer PASSWORD_ERROR_CODE = 1;
    // 登陆成功
    public final static Integer LOGIN_SUCCESS_CODE = 2;
    // 账号未启用
    public final static Integer DISABLE_ACCOUNT_CODE = 3;
    // simpleMenu 列表菜单类型
    public final static Integer SIMPLE_TYPE_MENU = 0;
    // simpleMenu 列表操作点类型
    public final static Integer SIMPLE_TYPE_RESOURCE = 1;
    // AuthRoleAuthority 权限类型 资源
    public final static String AUTHORITY_TYPE_RESOURCE = "RESOURCE";
    // AuthRoleAuthority 权限类型 菜单
    public final static String AUTHORITY_TYPE_MENU = "MENU";
    // 根菜单id
    public final static String ROOT_MENU_ID = "0";
    // 公共资源类型
    public final static Boolean RESOURCE_TYPE_PUBLIC = Boolean.TRUE;
}
